package com.sdhs.costcontrol.domain;

import java.math.BigDecimal;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.sdhs.common.annotation.Excel;
import lombok.Data;
import com.sdhs.common.core.domain.BaseEntity;

/**
 * 成本控制--采购确认-明细对象 gc_control_confirmation_purchase_list
 *
 * @author andong
 * @date 2025-03-17
 */
@Data
public class GcControlConfirmationPurchaseList extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 采购确认主键 */
    private Long id;

    /** 关联采购确认id */
    @Excel(name = "关联采购确认id")
    private Long purchaseId;

    /** 子目名称 */
    @Excel(name = "子目名称")
    private String subheadingsName;

    /** 子目号 */
    @Excel(name = "子目号")
    private String subheadingsNumber;

    /** 品牌 */
    @Excel(name = "品牌")
    private String brandName;

    /** 型号 */
    @Excel(name = "型号")
    private String modelNumber;

    /** 单位 */
    @Excel(name = "单位")
    private String unit;

    /** 采购数量 */
    @Excel(name = "采购数量")
    private BigDecimal purchaseQuantity;

    /** 合同价格 */
    @Excel(name = "合同价格")
    private BigDecimal contractPrice;

    /** 标前成本价 */
    @Excel(name = "标前成本价")
    private BigDecimal costPrice;

    /** 最终采购单价 */
    @Excel(name = "最终采购单价")
    private BigDecimal finalPrice;

    /** 到货数量 */
    @Excel(name = "到货数量")
    private BigDecimal arrivalQuantity;

    /** 税率 */
    @Excel(name = "税率")
    private String taxRate;

    /** 总额 */
    @Excel(name = "总额")
    private BigDecimal totalAmount;

    /** 关联清单id */
    @Excel(name = "关联清单id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long manageId;

    /** 关联项目id */
    @Excel(name = "关联项目id")
    private Long projectId;

    /** 总到货数量 */
    @Excel(name = "总到货数量")
    private BigDecimal totalArrivalQuantity;

    /**
     * 计划类别
     */
    @Excel(name = "计划类别")
    private String procurementType;

    /** 总数量 */
    @Excel(name = "总数量")
    private String quantity;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("purchaseId", getPurchaseId())
            .append("subheadingsName", getSubheadingsName())
            .append("subheadingsNumber", getSubheadingsNumber())
            .append("brandName", getBrandName())
            .append("modelNumber", getModelNumber())
            .append("unit", getUnit())
            .append("purchaseQuantity", getPurchaseQuantity())
            .append("contractPrice", getContractPrice())
            .append("costPrice", getCostPrice())
            .append("finalPrice", getFinalPrice())
            .append("arrivalQuantity", getArrivalQuantity())
            .append("taxRate", getTaxRate())
            .append("totalAmount", getTotalAmount())
            .append("manageId", getManageId())
            .append("projectId", getProjectId())
            .append("totalArrivalQuantity", getTotalArrivalQuantity())
            .append("procurementType", getProcurementType())
            .toString();
    }
}
